home *** CD-ROM | disk | FTP | other *** search
/ CICA 1995 September (Japanese) / CICA Shareware for Windows CD-ROM (Walnut Creek) (September 1995) (Japanese) (Disc 2).iso / disc2 / patches / symantec / mfcsim.exe / SIMNEW.EXE / MFC / SAMPLES / DIB / DIB.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-10-06  |  7.4 KB  |  241 lines

  1. // Filename: DIB.H                                          
  2. // "DIB" Generated by Visual Programmer.                    
  3. // Author:   Blue Sky                                       
  4.  
  5. // 
  6. // ***********************************************************************
  7. // Do not add code here.
  8. // 
  9. // This file is maintained by the Switch-It Module.
  10. // As you make changes in your applications design,
  11. // this file is automatically updated, therefore you never modify this file.
  12. // 
  13. // 
  14. // 
  15. // For more information,
  16. // see the section "How code is generated" in the documentation.
  17. // 
  18. // ***********************************************************************
  19. // 
  20.  
  21. // ****************************************************************************
  22. // Windows messages for WinHelp support 
  23. // ****************************************************************************
  24.  
  25. #ifndef WM_COMMANDHELP
  26. #define WM_COMMANDHELP              0x0365
  27. #endif
  28.  
  29. #ifndef WM_HELPHITTEST
  30. #define WM_HELPHITTEST              0x0366
  31. #endif
  32.  
  33. // ****************************************************************************
  34. // WPARAM for registered Windows message 
  35. // ****************************************************************************
  36.  
  37. #define SIM_CTRLPAINT             1
  38. #define SIM_CTLCOLOR              2
  39. #define SIM_GETCHILDDIALOG        3
  40. #define SIM_SETCHILDDIALOG        4
  41. #define SIM_SIZEDIALOG            5
  42. #define SIM_LOADACCELTABLE        6
  43. #define SIM_RELOADACCELERATORS    7
  44.  
  45. typedef struct tagBLDSetChildDialog
  46.     {
  47.     CWnd *pWnd;
  48.     UINT  nStyle;
  49.     }BLDSetChildDialog;
  50. typedef BLDSetChildDialog FAR *LPBLDSetChildDialog;
  51.  
  52. // ****************************************************************************
  53. // Types for Graphic Buttons 
  54. // ****************************************************************************
  55.  
  56. #define SIM_GRAPHIC           1
  57. #define SIM_GRAPHIC_BKGRND    2
  58. #define SIM_GRAPHIC_3D        3
  59.  
  60.  
  61. // To support name from previous version.
  62. #define CWinMakerFrameWnd   Cwm_MainBaseWnd
  63. #define CWinMakerApp        Cwm_BaseApplication
  64. #define CWinMakerClientDlg  CSimClientDlg
  65.  
  66.     
  67. #if !defined(THISISBLDRC)
  68.     
  69. #include <AFXEXT.H>
  70. #endif
  71.     
  72.  
  73. //  Give access to variables in all code modules 
  74. extern DWORD     dwDialogProp;
  75. extern BOOL      b256Color;
  76. extern BOOL      bPreCreateCheck;
  77. extern HINSTANCE hBMPInst;
  78. extern UINT      wPrivateMessage;
  79.  
  80. #define CLIENTSTRIP WS_MINIMIZE|WS_MAXIMIZE|WS_CAPTION|WS_BORDER|WS_DLGFRAME|WS_SYSMENU|WS_POPUP|WS_THICKFRAME|DS_MODALFRAME|DS_SYSMODAL|WS_VISIBLE
  81. #define TOOLBARSTRIP WS_MINIMIZE|WS_MAXIMIZE|WS_POPUP|DS_SYSMODAL|WS_VISIBLE
  82.  
  83. typedef struct 
  84.    {
  85.    long          style;
  86.    // MORE ...
  87.    } BLD_DLGTEMPLATE;
  88.  
  89. typedef BLD_DLGTEMPLATE far             *LPBLD_DLGTEMPLATE;
  90.  
  91. #define BLDTOOLBARSTYLEDEFAULT           (UINT)0xffff
  92.  
  93.  
  94.  
  95. // Constants for error message strings
  96. #define BLD_CannotRun                   4000
  97. #define BLD_CannotCreate                4001
  98. #define BLD_CannotLoadMenu              4002
  99. #define BLD_CannotLoadIcon              4003
  100. #define BLD_CannotLoadBitmap            4004
  101. #define BLD_CannotCreateWindow          4005
  102.     
  103. // User defined constant ID's
  104.     
  105. #define IDM_Red                         10001
  106. #define IDM_Blue                        10002
  107. #define IDM_Own                         10003
  108. #define IDM_About                       10004
  109.  
  110. // Resource IDs for menus and accelerators
  111. #define IDR_DIB                         2
  112.  
  113.     
  114. // Switch-It Module automatic generated constant ID's
  115.     
  116. #define WMPDEBUG 
  117.     
  118.     
  119. // Help ID's used by functions
  120.     
  121.     
  122. #if !defined(THISISBLDRC)
  123.     
  124. // Switch-It Module class definitions.
  125. class Cwm_BaseApplication;
  126. class Cwm_MainBaseWnd;
  127. class Cwm_Application;
  128. class Cwm_MainWnd;
  129. class CSimModelessDlg;
  130. class CSimModalDlg;
  131. class CSimClientDlg;
  132. class CSimToolbar;
  133. class Cwm_AboutBaseDlg;
  134. class Cwm_AboutDlg;
  135. class Cwm_DIBClientBaseDlg;
  136. class Cwm_DIBClientDlg;
  137.  
  138. BOOL BLDSwitchMenu(CWnd *,char *);
  139. HMENU BLDLoadMenu(CWnd *,int,HMENU *,BOOL);
  140. BOOL BLDLoadAccelerators(CWnd *,int);
  141. HBITMAP BLDLoadBitmap(HINSTANCE,char *);
  142.  
  143. Cwm_MainWnd* BLDMainCreateWnd(CWnd *pAParent);
  144. BOOL BLDCreateClientControlsDef(char *,CSimClientDlg *);
  145. BOOL BLDCreateClientControls(char *,CSimClientDlg *);
  146.  
  147.  
  148. int  BLDDisplayMessageDef(HWND,UINT,char *,int);
  149. BOOL BLDDrawBitmapDef(LPDRAWITEMSTRUCT,char *,BOOL);
  150. BOOL BLDDrawIconDef(LPDRAWITEMSTRUCT,char *);
  151. BOOL BLDSendMDIMessageDef(CWnd *,UINT,int);
  152. BOOL BLDDrawBkgndIconDef(HWND,LPPAINTSTRUCT ,char *,int);
  153. BOOL BLDDrawBkgndBitmapDef(HWND,LPPAINTSTRUCT,char *,int,BOOL,BOOL,int,int);
  154. BOOL BLDDrawAutoStateDef(LPDRAWITEMSTRUCT,char *,BOOL,BOOL);
  155. BOOL BLDDrawStateBitmapDef(LPDRAWITEMSTRUCT,char *,char *,char *,char *,BOOL);
  156. BOOL BLDDrawStateIconDef(LPDRAWITEMSTRUCT,char *,char *,char *,char *);
  157. void BLDFindCtrlsRightBottomDef(CWnd *,int *,int *);
  158. void BLDCalcScrollRangesDef(CWnd *,int *,int *,int,int,int,int);
  159. BOOL BLDScrollDlgDef(CWnd *,UINT,int,int,int,int,int,int,int,int,BOOL,int *,int *);
  160. BOOL BLDSizeDlgDef(CWnd *,int,int);
  161. BOOL BLDCheckF1HelpKeyDef(BOOL);
  162. BOOL BLDDrawItemDef(HWND,LPDRAWITEMSTRUCT);
  163. static BOOL BLDMoveTo(HDC,int,int);
  164. static BOOL BLDDrawFrame(HDC,int,int,int,int,BOOL);
  165. BOOL BLDBitmapToScreenDef(HDC,char *,int,int,int,int,DWORD,BOOL);
  166. HBRUSH BLDGetGlobalBrushDef(HWND hCtrl,HDC hDC);
  167.  
  168. int BLDDisplayMessage(HWND,UINT,char *,int);
  169. BOOL BLDDrawBitmap(LPDRAWITEMSTRUCT,char *,BOOL);
  170. BOOL BLDDrawIcon(LPDRAWITEMSTRUCT,char *);
  171. BOOL BLDSendMDIMessage(CWnd *,UINT,int);
  172. BOOL BLDDrawBkgndIcon(HWND,LPPAINTSTRUCT ,char *,int);
  173. BOOL BLDDrawBkgndBitmap(HWND,LPPAINTSTRUCT ,char *,int,BOOL,BOOL,int,int);
  174. BOOL BLDDrawAutoState(LPDRAWITEMSTRUCT,char *,BOOL,BOOL);
  175. BOOL BLDDrawStateBitmap(LPDRAWITEMSTRUCT,char *,char *,char *,char *,BOOL);
  176. void BLDFindCtrlsRightBottom(CWnd *,int *,int *);
  177. BOOL BLDScrollDlg(CWnd *,UINT,int,int,int,int,int,int,int,int,BOOL,int *,int *);
  178. BOOL BLDSizeDlg(CWnd *,int,int);
  179. BOOL BLDCheckF1HelpKey(BOOL);
  180. BOOL BLDDrawItem(HWND,LPDRAWITEMSTRUCT);
  181. BOOL BLDBitmapToScreen(HDC,char *,int,int,int,int,DWORD,BOOL);
  182. BOOL BLDDrawStateIcon(LPDRAWITEMSTRUCT,char *,char *,char *,char *);
  183. void BLDCalcScrollRanges(CWnd *,int *,int *,int,int,int,int);
  184. int BLD_AboutDlgFunc(CWnd * pWnd);
  185. BOOL BLD_RedUDCFunc (CWnd *pWnd);
  186. BOOL BLD_BlueUDCFunc (CWnd *pWnd);
  187. BOOL BLD_OwnUDCFunc (CWnd *pWnd);
  188. CWnd* BLD_DIBClientClFunc(CWnd *pWnd);
  189.  
  190. #endif
  191.     
  192.  
  193.  
  194. // *********************************************************
  195. // ERROR MESSAGE HANDLING (Definitions can be overruled.)
  196. // *********************************************************
  197.  
  198. #ifndef BLDMAINCAPTION
  199. #define BLDMAINCAPTION "DIB"
  200. #endif
  201.  
  202. #ifndef BLDLOADERROR
  203. #define BLDLOADERROR "Cannot load string."
  204. #endif
  205.  
  206.  
  207.  
  208. // Switch-It Module color definitions
  209.  
  210. #define  BLD_BLACK          0X00000000L
  211. #define  BLD_WHITE          0X00FFFFFFL
  212. #define  BLD_GRAY           0X007F7F7FL
  213. #define  BLD_LTGRAY         0X00C0C0C0L
  214.  
  215.  
  216. // Switch-It Module definitions
  217.  
  218. #define BLD_MAXPATH         256
  219.  
  220. // Switch-It Module global dialog box properties
  221.  
  222. #define BLDGRAY_DIALOGBOX   0x00000001L
  223. #define BLDGRAY_BUTTON      0x00000002L
  224. #define BLDGRAY_COMBOBOX    0x00000004L
  225. #define BLDGRAY_LISTBOX     0x00000008L
  226. #define BLDGRAY_EDIT        0x00000010L
  227. #define BLDGRAY_SCROLLBAR   0x00000020L
  228. #define BLDGRAY_TEXT        0x00000040L
  229.  
  230.     
  231. #if !defined(THISISBLDRC)
  232.     
  233. #include "SERVICE.WMH"
  234. #include "DIB.WMH"
  235.  
  236.  
  237. extern Cwm_Application  TheApp;
  238.  
  239. #endif
  240.     
  241.